package com.heima.feign;

import com.heima.model.article.dto.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-article")
public interface ArticleClient {


    @PostMapping(path = "/api/v1/article/save")
    public ResponseResult save(@RequestBody ArticleDto dto);
}
